var db = require('./utils/db');
var configs = require(process.argv[2]);

//init db pool.
db.init(configs.mysql());

var config = configs.ad_server();
var as = require('./ad_server');
as.start(config);
